import React from 'react';
import { Button } from 'antd';
import {formatNumber} from '../../../utils/utils'
import styles from './index.less';

export default ({ number,len}) => {
    let str=formatNumber(number,len);
    console.log(str);
  return (
    <span className={styles.sum}>
        {str.split('').map((x)=><span className={styles.num}>{x}</span>)}
    </span>
  );
};
